package com.myzk.example.consts;

public class ResultCodeMsg {
    public static final String SUCCESS_CODE = "2000";
    public static final String SUCCESS_MSG = "交易成功";

    public static final String ERROR_CODE = "9999";
    public static final String ERROR_MSG = "交易失败";

    public static final ResultCodeMsg SUCCESS = new ResultCodeMsg(SUCCESS_CODE,SUCCESS_MSG);
    public static final ResultCodeMsg ERROR = new ResultCodeMsg(ERROR_CODE,ERROR_MSG);

    private String code;
    private String message;

    public ResultCodeMsg(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
